package com.toolbox.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSort;
import com.toolbox.result.ResponseResultDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * Description：
 * </p>
 *
 * @author Mango
 * @version v1.0.0
 * @date 2023-11-20 16:47
 * @see com.toolbox.controller
 */
@SuppressWarnings("ALL")
@Slf4j
@ApiSort(1)
@Api(tags = "server test 前端控制器")
@RestController
@RequestMapping("/server-test-do")
public class ServerTestController {

    /**
     * 测试接口
     *
     * @return 当前时间戳
     */
    @ApiOperationSupport(order = 100)
    @ApiOperation(value = "SERVER TEST")
    @GetMapping
    public ResponseResultDTO<String> get() {
        return ResponseResultDTO.success("请求时间戳为：" + System.currentTimeMillis());
    }

}
